package models;

import play.db.ebean.Model;
import java.util.*;
import javax.persistence.*;
import play.db.ebean.*;

@Entity
public class Commentaire extends Model{

	public String auteur;
	public Date postedate;
	
	@Lob
	public String contenu;
	
	@ManyToOne
	public Post post;

	public Commentaire(Post post, String a, String contenu, Date d ){
		this.auteur=a;
		this.postedate=d;
		this.contenu=contenu;
		this.post=post;
	}
	
}
